export const checkIpRestriction = async () => {
  try {
    const response = await fetch('/api/sql_execute/check');
    if (!response.ok) {
      throw new Error('Network response was not ok');
    }
    return await response.json();
  } catch (error) {
    console.error('Error checking IP restriction:', error);
    return { restricted: true, error: error.message };
  }
}; 